package com.zt.util;

public enum ApiServiceExceptionEnum implements BaseExceptionEnum{
	SUCCESS(1, "成功"),
	RESULT_SUCCES(1,"成功"),
    RESULT_ERROR(0,"失败"),
    Login_SUCCESS(200,"登录成功"),
    Login_ERROR(0,"登录失败"),
    REG_SUCCESS(1,"注册成功"),
    REG_ERROR(0,"注册失败"),
    ISEXISTS_ERROR(0,"已存在"),
    SHOP_NOEXISTS_ERROR(0,"店铺不存在"),
    SHOP_AUDIT_STATUS(0,"审核中"),
    SHOP_AUDIT_ERROR(0,"审核 失败"),
    ISADD_ERROR(0,"已创建过"),
    APPLY_ERROR(0,"已报过名"),
    APPLY_TIME_ERROR(0,"已超时"),
    APPLY_NUM_ERROR(0,"报名已满"),
    USER_NOT_EXISTS(401,"用户不存在"),
    DATA_NOT_EXISTS(404,"数据不存在"),
    PASSWORD_ERROR(500,"密码错误"),
    PHONE_ERROR(500,"手机号错误");




     ApiServiceExceptionEnum(Integer code , String message) {

    	 this.code=code;
    	 this.message=message;
    }
     private Integer code;

     private String message;

    @Override
	public Integer getCode() {
		// TODO Auto-generated method stub
		return code;
	}

	@Override
	public String getMessage() {
		// TODO Auto-generated method stub
		return message;
	}

}
